<?php
$date = date('l,j,F,Y,H,i,s');
$bln = date ('F');
 
 $new = explode(",","$date");            
    $Hari = $new[0];
    $Tgl = $new[1];    
    $Bulan = $new[2];
    $Tahun = $new[3];
	$Jam = $new[4];    
    $Menit = $new[5];
    $Detik = $new[6];
    
    if($Hari == "Monday")
        $Hari = "Senin";
    else if($Hari == "Tuesday")
        $Hari = "Selasa";
    else if($Hari == "Wednesday")
        $Hari = "Rabu";    
    else if($Hari == "Thursday")
        $Hari = "Kamis";
    else if($Hari == "Friday")
        $Hari = "Jumat";
    else if($Hari == "Saturday")
        $Hari = "Sabtu";
    else if($Hari == "Sunday")
        $Hari = "Minggu";
    
    if($Bulan == "January")
      {  $Bulan = "01";
		 $Bulan1 = "Januari"; }
    else if($Bulan == "February")
        $Bulan1 = "02";
    else if($Bulan == "March")
        $Bulan1 = "03";
	else if($Bulan == "April")
        $Bulan1 = "04";    
    else if($Bulan == "May")
        $Bulan1 = "05";
    else if($Bulan == "June")
        $Bulan1 = "06";
    else if($Bulan == "July")
        $Bulan1 = "07";
    else if($Bulan == "August")
        $Bulan1 = "08";
    else if($Bulan == "September")
        $Bulan1 = "09";
	else if($Bulan == "October")
        $Bulan1 = "10";
	else if($Bulan == "November")
        $Bulan1 = "11";
    else if($Bulan == "December")
        $Bulan1 = "12";
        
        
    $waktu = $Tgl."-".$Bulan."-".$Tahun."/".$Jam.":".$Menit.":".$Detik;
	$tgl = $Tahun."-".$Bulan."-".$Tgl;
	$tgl1 = $Tahun."-".$Bulan1."-".$Tgl;
	$tgl2 = $Tahun."-".$Bulan1."-".$Tgl." ".$Jam.":".$Menit.":".$Detik;
?>